const getDefault = () => {
    return !(window.innerWidth >= 900)
}
const state = {
    openBar: getDefault()
}
const mutations = {
    SET_OPENER(state) {
        state.openBar = !this.state.openBar
    }
}

const actions = {
    openChange({commit}) {
        return new Promise(resolve => {
            commit('SET_OPENER')
            resolve()
        })
    }
}
export default {
    state,
    mutations,
    actions
}